.custom-page-header {
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;

  &.ghost {
    background: transparent;
    border-bottom: none;
  }

  .page-header-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;

    .page-header-left {
      display: flex;
      align-items: center;
      flex: 1;

      .back-button {
        margin-right: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 6px;
        transition: all 0.2s;

        &:hover {
          background-color: #f5f5f5;
        }

        .anticon {
          font-size: 16px;
          color: #1890ff;
        }
      }

      .page-header-title-wrapper {
        flex: 1;
        min-width: 0;

        .page-header-title {
          font-size: 20px;
          font-weight: 600;
          color: #262626;
          line-height: 28px;
          margin-bottom: 4px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        .page-header-subtitle {
          font-size: 14px;
          color: #8c8c8c;
          line-height: 20px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }
    }

    .page-header-extra {
      margin-left: 16px;
      flex-shrink: 0;

      .ant-btn + .ant-btn {
        margin-left: 8px;
      }
    }
  }

  .page-header-breadcrumb {
    font-size: 14px;
    color: #8c8c8c;
    margin-bottom: 8px;

    .breadcrumb-item {
      color: #8c8c8c;

      &:last-child {
        color: #262626;
      }
    }

    .breadcrumb-separator {
      color: #d9d9d9;
      margin: 0 8px;
    }
  }

  .page-header-content {
    color: #595959;
    font-size: 14px;
    line-height: 1.6;
  }
}

// 响应式适配
@media (max-width: 768px) {
  .custom-page-header {
    padding: 12px 16px;

    .page-header-heading {
      flex-direction: column;
      align-items: stretch;

      .page-header-left {
        margin-bottom: 12px;

        .page-header-title-wrapper {
          .page-header-title {
            font-size: 18px;
          }
        }
      }

      .page-header-extra {
        margin-left: 0;
        align-self: flex-end;
      }
    }
  }
}